package com.example.study_thread.BaoZi;

public class Test {
    public static void main(String[] args) {
        BaoZiPu baoZiPu = new BaoZiPu();
        Consumer consumer = new Consumer(baoZiPu);
        new Thread(consumer).start();
        new Thread(consumer).start();
        new Thread(consumer).start();

        Producer producer = new Producer(baoZiPu);
        new Thread(producer).start();
        new Thread(producer).start();
        new Thread(producer).start();
    }
}
